package com.springboot.middleware.middleware_lock.model.entity;

import java.util.Date;

public class UserReg {
    /**
     * 用户id
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    private Integer id;

    /**
     * 用户名
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    private String userName;

    /**
     * 密码
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    private String password;

    /**
     * 创建时间
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    private Date createTime;

    /**
     * 获取用户id
     * @return the value of user_reg.id
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置用户id
     * @param id the value for user_reg.id
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户名
     * @return the value of user_reg.user_name
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置用户名
     * @param userName the value for user_reg.user_name
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * 获取密码
     * @return the value of user_reg.password
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置密码
     * @param password the value for user_reg.password
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    /**
     * 获取创建时间
     * @return the value of user_reg.create_time
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建时间
     * @param createTime the value for user_reg.create_time
     *
     * @mbg.generated Fri Jan 14 23:16:10 CST 2022
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "UserReg{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}